package org.b.a.b;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.charset.Charset;

public final class b
{
  private static File[] a = new File[0];
  private static final Charset b = Charset.forName("UTF-8");

  public static void a(File paramFile)
  {
    if (!paramFile.exists())
      return;
    if (paramFile == null)
      throw new NullPointerException("File must not be null");
    int i;
    //if (a.a())
      i = 0;
    while (true)
    {
      if (i == 0)
        b(paramFile);
      if (paramFile.delete())
        break;
      String str1 = "Unable to delete directory " + paramFile + ".";
      //throw new IOException(str1);
      //if (paramFile.getParent() == null);
      File localFile5;
      String str2;
      File localFile2;
      for (File localFile1 = paramFile; ; localFile2 = new File(localFile5, str2))
      {
        try {
			File localFile3 = localFile1.getCanonicalFile();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        File localFile4 = localFile1.getAbsoluteFile();
        //if (!localFile3.equals(localFile4))
          //break label143;
        int j = 0;
        break;
        //localFile5 = paramFile.getParentFile().getCanonicalFile();
        //str2 = paramFile.getName();
      }
      //label143: int k = 1;
    }
  }

  private static void b(File paramFile)
  {
    if (!paramFile.exists())
    {
      String str1 = paramFile + " does not exist";
      throw new IllegalArgumentException(str1);
    }
    if (!paramFile.isDirectory())
    {
      String str2 = paramFile + " is not a directory";
      throw new IllegalArgumentException(str2);
    }
    File[] arrayOfFile = paramFile.listFiles();
    if (arrayOfFile == null)
    {
      String str3 = "Failed to list contents of " + paramFile;
      //throw new IOException(str3);
    }
    int i = arrayOfFile.length;
    int j = 0;
    Object localObject = null;
    int k = j;
    while (k < i)
    {
      File localFile = arrayOfFile[k];
      try
      {
        if (localFile.isDirectory())
          a(localFile);
        //label152: 
        	boolean bool;
        do
        {
          k += 1;
          break;
          //bool = localFile.exists();
        }
        while (localFile.delete());
        //if (!bool)
        {
          String str4 = "File does not exist: " + localFile;
          throw new FileNotFoundException(str4);
        }
      }
      catch (IOException localIOException)
      {
        //break label152;
        String str5 = "Unable to delete file: " + localFile;
        //throw new IOException(str5);
      }
    }
    //if (localIOException != null)
      //throw localIOException;
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     org.b.a.b.b
 * JD-Core Version:    0.6.0
 */